package log;

import java.util.Timer;

public class MyTimer {
    Timer timer = new Timer();
    public MyTimer(int time){
        timer.schedule(new log(),time * 1000,time * 1000);
    }

    public static void main(String[] args) {
        new MyTimer(2);
    }
}
